<?php
html::printPath(array('account.form-title' => 'admin/account/all', 'application.page-title-display' => ''));
$msg->printMessages();
?>

<ul class="commandList">
    <li class="editLi"><?php echo html::anchor('admin/account/edit?id=' . $account['id'], text::get('account.editThis')) ?></li>
    <!--
    <li class="deleteLi"><?php echo html::anchor('admin/account/delete?id=' . $account['id'], text::get('account.deleteThis'), array('onclick'=>'return confirmDeletion()')) ?></li>
    -->
</ul>

<ul class="commandList">
    <li class="registrationsLi"><?php echo html::anchor('admin/account/registrationList?id=' . $account['id'], text::get('account.registrationList')) ?></li>
</ul>

<?php
$fullName = $account['title'] . ' ' . $account['first_name'] . ' ' . $account['other_names'] . ' ' . $account['last_name'];

$fb = new FormBuilder('account', $account);
$fb->displayOnly();
$fb->display('full_name')->value($fullName)->identifyingValue();
$fb->text('yoga_name');
$fb->radioButtons('gender', array('M','F'), 'person.gender-');
$fb->date('birth_date');

$fb->delimiter();
$fb->text('street');
$fb->text('city');
$fb->text('postal_code');
$fb->display('country_code')->value($account['country_name']);

$fb->delimiter();
$fb->text('idcard_number');
$fb->text('telephone');
$fb->text('email');

$fb->delimiter();
$fb->text('login');
$fb->yesNoBox('is_admin')->noEmptyOption();

$fb->delimiter();
$fb->textarea('notes');
$fb->submitButton();
$fb->write();


